from django.contrib import admin
from .models import Certificate

# Register your models here.

@admin.register(Certificate)
class CertificateAdmin(admin.ModelAdmin):
    list_display = ['id', 'name', 'sort', 'ranks', 'classes', 'grade']
    list_filter = ['sort', 'ranks', 'classes']
    search_fields = ['name', 'sort']
    list_per_page = 20
    ordering = ['-id']
